import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: "index",
      component: () => import("@/view/index")
    },{
      path: '/login',
      name: "login",
      component: () => import("@/components/user/login")
    },{
      path: '/register',
      name: "register",
      component: () => import("@/components/user/register")
    },{
      path: '/stu_home',
      name: "home",
      component: () => import("@/view/student/home")
    },{
      path: '/ad-home',
      name: "ad-home",
      component: () => import("@/view/admin/form")
    },{
      path: '/ad-home1',
      name: "ad-home",
      component: () => import("@/view/admin/form2")
    },{
      path: '/assessor-home',
      name: "assessor-home",
      component: () => import("@/view/access/index")
    },{
      path: '/assessor-vote',
      name: "assessor-vote",
      component: () => import("@/view/access/vote")
    }
    ,{
      path:'/addVote',
      name:"addVote",
      component: () => import("@/view/student/addVote")
    }
  ]
})
